/**
 * @Description
 * @Author zhaobaolin
 * @Date 2018/12/1
 */
public class MyInfo {
    static String name(String name,int age){
        if(age < 18){
            name = "少年人"+name;
        }else if(age > 18 && age< 28){
            name = "青年人"+name;
        }else{
            name = "老年人"+name;
        }
        return name+"年龄是"+age;
    }
}
